home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
001
/
icpr20c.arc
/
D.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1987-07-09
|
6KB
|
269 lines
; This file was created using MAKED from the package ICPR20
; designed by Wayne Wolf. ICPR20 Copyright 1987
; You may modify this file in any way you wish but since the make
; files utilize the existing cmd files I discourage it. If you have
; comments or useful modifications please contact me, either at
; unix: ww@ufcsg.ufl.edu or bbs: PC-EXCHANGE at 404-977-6686.
P1:
Clear
Message " PcPursuit Exchange Dialing Menu"
Message "██████████████████████████████████████████████████████████████████████████████"
Message " 1 --> 201 (Newark)"
Message " 2 --> 202 (Washington, D.C.)"
Message " 3 --> 206 (Seattle)"
Message " 4 --> 212 (New York)"
Message " 5 --> 213 (Los Angeles)"
Message " 6 --> 214 (Dallas)"
Message " 7 --> 215 (Philadelphia)"
Message " 8 --> 216 (Cleveland)"
Message " 9 --> 303 (Denver)"
Message "10 --> 305 (Miami)"
Message "11 --> 312 (Chicago)"
Message "12 --> 313 (Detroit)"
Message "13 --> 404 (Atlanta)"
Message "14 --> 408 (San Jose)"
Message "15 --> 414 (Milwaukee)"
;
Message " C --> Connect to the Net-Exchange E --> Exit to Procomm level"
Message " Q --> Quit to DOS level"
Message " P --> View next page"
Locate 22,0
Message "Your Choice -->"
Goto Retry1
;
P2:
Clear
Message " PcPursuit Exchange Dialing Menu"
Message "██████████████████████████████████████████████████████████████████████████████"
Message "16 --> 415 (San Francisco)"
Message "17 --> 503 (Portland)"
Message "18 --> 602 (Phoenix)"
Message "19 --> 612 (Minneapolis)"
Message "20 --> 617 (Boston)"
Message "21 --> 713 (Houston)"
Message "22 --> 801 (Salt Lake City)"
Message "23 --> 813 (Tampa)"
Message "24 --> 818 (Glendale)"
Message "25 --> 919 (Research Triangle Park)"
;
Message " C --> Connect to the Net-Exchange E --> Exit to Procomm level"
Message " Q --> Quit to DOS level"
Message " P --> View next page"
Locate 22,0
Message "Your Choice -->"
Goto Retry2
;
Retry1:
Locate 22,15
Get S1
Switch S1
Case "C"
Goto Pursuit
EndCase
Case "E"
Clear
Exit
EndCase
Case "Q"
Hangup
Quit
EndCase
Case "P"
Goto P2
EndCase
Case "1"
Assign S2 "201"
Assign S0 "Step201"
EndCase
Case "2"
Assign S2 "202"
Assign S0 "Step202"
EndCase
Case "3"
Assign S2 "206"
Assign S0 "Step206"
EndCase
Case "4"
Assign S2 "212"
Assign S0 "Step212"
EndCase
Case "5"
Assign S2 "213"
Assign S0 "Step213"
EndCase
Case "6"
Assign S2 "214"
Assign S0 "Step214"
EndCase
Case "7"
Assign S2 "215"
Assign S0 "Step215"
EndCase
Case "8"
Assign S2 "216"
Assign S0 "Step216"
EndCase
Case "9"
Assign S2 "303"
Assign S0 "Step303"
EndCase
Case "10"
Assign S2 "305"
Assign S0 "Step305"
EndCase
Case "11"
Assign S2 "312"
Assign S0 "Step312"
EndCase
Case "12"
Assign S2 "313"
Assign S0 "Step313"
EndCase
Case "13"
Assign S2 "404"
Assign S0 "Step404"
EndCase
Case "14"
Assign S2 "408"
Assign S0 "Step408"
EndCase
Case "15"
Assign S2 "414"
Assign S0 "Step414"
EndCase
Default
Message " "
Message "Invalid choice, please retype"
Locate 22,15
Message " "
Goto Retry1
EndCase
EndSwitch
Goto Redial
;
Retry2:
Locate 22,15
Get S1
Switch S1
Case "C"
Goto Pursuit
EndCase
Case "E"
Clear
Exit
EndCase
Case "Q"
Hangup
Quit
EndCase
Case "P"
Goto P1
EndCase
Case "16"
Assign S2 "415"
Assign S0 "Step415"
EndCase
Case "17"
Assign S2 "503"
Assign S0 "Step503"
EndCase
Case "18"
Assign S2 "602"
Assign S0 "Step602"
EndCase
Case "19"
Assign S2 "612"
Assign S0 "Step612"
EndCase
Case "20"
Assign S2 "617"
Assign S0 "Step617"
EndCase
Case "21"
Assign S2 "713"
Assign S0 "Step713"
EndCase
Case "22"
Assign S2 "801"
Assign S0 "Step801"
EndCase
Case "23"
Assign S2 "813"
Assign S0 "Step813"
EndCase
Case "24"
Assign S2 "818"
Assign S0 "Step818"
EndCase
Case "25"
Assign S2 "919"
Assign S0 "Step919"
EndCase
Default
Message " "
Message "Invalid choice, please retype"
Locate 22,15
Message " "
Goto Retry2
EndCase
EndSwitch
Goto Redial
;
Redial:
Clear
Message "Hit 'Q' or 'q' now to exit and return to main menu."
Wait "Q" 2
IF Waitfor
Tran "!"
Clear
Message "Action cancelled by user!"
Goto P1
ENDIF
;
Tran "C DIAL"
Tran S2
Tran "/12,username!"
Wait "PASSWORD = "
Tran "password!"
Wait "CONNECT" 5
IF NOT Waitfor
Goto Redial
ELSE
Alarm 2
Assign S7 "R"
Tran "!"
Wait "HELLO" 3
IF NOT Waitfor
Tran "ATZ I!"
Pause 2
Tran "!"
ENDIF
Assign S8 "I"
Pause 2
Execute S0
ENDIF
;
RdPur:
Clear
Message "Hit 'Q' or 'q' now to exit and return to main menu."
Wait "Q" 2
IF Waitfor
Tran "!"
Clear
Message "Action cancelled by user!"
Goto P1
ENDIF
Pursuit:
Clear
Tran "C PURSUIT,"
Tran "username!"
Wait "PASSWORD = "
Tran "password!"
Wait "CONNECT" 5
IF NOT Waitfor
Goto RdPur
ELSE
Alarm 2
ENDIF
Exit